import React from 'react'
import {  BrowserRouter } from 'react-router-dom'



// 路由配置
import MyRoutes from './utils/router/MyRoutes'

// 国际化
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN';

function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <React.Suspense fallback={<h1>加载中...</h1>}>
        <BrowserRouter>
          <MyRoutes />
        </BrowserRouter>
      </React.Suspense>
    </ConfigProvider>
  )
}

export default App
